/*
 * @Author: your name
 * @Date: 2020-04-10 17:00:18
 * @LastEditTime: 2021-10-20 15:52:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /gatt/src/modules/front/data/mock/GattCat/index.js
 */
import Mock from 'mockjs'
// 拓展mockjs
Mock.Random.extend({
  randomColor: function () {
  // 自定义十种随机色
    const colorList = ['173,25,177', '2,129,31', '89,97,233', '46,176,219', '204,126,70', '78,150,246', '230,136,138', '79,135,156', '115,190,146', '192,196,204']
    const colorIndex = Math.floor(Math.random() * colorList.length)
    const color = colorList[colorIndex]
    colorList.splice(colorIndex, 1)
    return color
  }
})

// 左边公司树形 列表
const data = {
  code: 200,
  message: '处理成功',
  data: {
    colors: [{ lable: '0%～25%', value: '#BE2E55' }, { lable: '26%～50%', value: '#4299F3' }, { lable: '51%～75%', value: '#3EB88D' }, { lable: '76%～100%', value: '#008000' }],
    data: [{
      // split-pane 分割偏移百分比值
      offset: 0.28,
      // 显示的刻度(时间刻度 1:日,2周,3月,4季,5年,默认是1)
      timeMode: 3,
      // 最小的开始时间
      // startTime: new Date('2020/01/28').getTime(),
      startTime: new Date(2020, 0, 28).getTime(),
      // 最大的结束时间
      // endTime: new Date('2022/01/03').getTime(),
      endTime: new Date(2022, 0, 3).getTime(),
      // 表格头部的属性值(必须要设置),params设置的字段在表头设置的字段里存在才会在浮窗显示
      headData: {
        title: {
          value: '名称',
          width: 180,
          shrink: true,
          // 是否在鼠标移入浮窗提示框显示该字段
          showToast: true,
          listenClick: true,
          // 控制在表格列表中是否隐藏
          hideHead: false
        },
        startTime: {
          value: '开始时间',
          width: 100,
          showToast: true,
          chooseTime: true,
          timeMode: 1
        },
        endTime: {
          value: '结束时间',
          width: 100,
          showToast: true,
          chooseTime: true,
          timeMode: 2
        },
        area: {
          value: '面积',
          width: 100,
          showToast: false,
          edit: true,
          hideHead: true
        },
        per: {
          value: '进度',
          width: 100,
          showToast: true,
          hideHead: false
        }
      },
      // headData里的属性必须要和ganteData里params里的属性相对应,属性名要一样
      ganttData: [
        {
          id: 1,
          params: {
            title: '进度细分时间段模式',
            // 表格中显示
            startTime: '2020-01-28',
            endTime: '2020-09-01',
            area: '35395m²',
            // 进度比率
            per: '34%',
            // 控制是否对时间分段看每个时间段的详情
            showChild: true,
            children: [
              {
                title: '进度细分时间段模式',
                startTime: '2020-01-28',
                endTime: '2020-07-02',
                area: '395m²',
                // 控制细分时间段内在有进度比率情况下是否以进度条形式展现
                showProcess: true,
                // 进度比率
                per: '74%',
                bgcColor: '#00C49A',
                perBgColor: '#13587E'
              },
              {
                title: '进度细分时间段模式',
                startTime: '2020-07-03',
                endTime: '2020-08-02',
                area: '395m²',
                showProcess: true,
                // 出租率
                per: '45%',
                bgcColor: '#b5538d'
              }
            ]
          },
          // 甘特图整个日历时间范围
          startTime: new Date(2020, 0, 28).getTime(),
          endTime: new Date(2020, 8, 1).getTime(),
          level: 1,
          open: true,
          children: [
            {
              id: 2,
              open: true,
              params: {
                title: '进度细分时间段子级',
                startTime: '2020-01-28',
                endTime: '2020-08-28',
                area: '1685m²',
                // 出租率
                per: '52%',
                showChild: true,
                children: [
                  {
                    title: '细分时间段子级',
                    startTime: '2020-01-28',
                    endTime: '2020-04-28',
                    area: '395m²',
                    // 控制细分时间段内在有进度比率情况下是否以进度条形式展现
                    showProcess: true,
                    // 进度比率
                    per: '41%',
                    bgcColor: '#6b4f0b'
                  },
                  {
                    title: '细分时间段子级',
                    startTime: '2020-04-29',
                    endTime: '2020-08-28',
                    area: '395m²',
                    showProcess: true,
                    // 出租率
                    per: '45%',
                    bgcColor: '#051a56'
                  }
                ]
              },
              startTime: new Date(2020, 0, 28).getTime(),
              endTime: new Date(2020, 7, 28).getTime(),
              bgcColor: '#00C49A',
              perBgColor: '#13587E',
              level: 2,
              children: [
                {
                  id: '2-1',
                  open: true,
                  params: {
                    title: '细分时间段绘制进度',
                    startTime: '2020-01-28',
                    endTime: '2020-04-28',
                    area: '1685m²',
                    // 出租率
                    per: '56%',
                    // 控制是否对时间分段看每个时间段的详情
                    showChild: true,
                    children: [
                      {
                        title: '细分时间段绘制进度',
                        startTime: '2020-01-28',
                        endTime: '2020-02-28',
                        area: '39m²',
                        // 进度比率
                        per: '60%',
                        showProcess: true,
                        bgcColor: '#13587E',
                        perBgColor: '#5dbef3'
                      },
                      {
                        title: '细分时间段绘制进度',
                        startTime: '2020-02-29',
                        endTime: '2020-03-28',
                        area: '39m²',
                        // 进度比率
                        per: '48%',
                        showProcess: true,
                        bgcColor: '#0f7def',
                        perBgColor: '#f7d0e8'
                      },
                      {
                        title: '细分时间段绘制进度',
                        startTime: '2020-03-29',
                        endTime: '2020-04-28',
                        area: '39m²',
                        // 进度比率
                        per: '10%',
                        bgcColor: '#880b2c',
                        perBgColor: '#13587E'
                      }
                    ]
                  },
                  startTime: new Date(2020, 0, 28).getTime(),
                  endTime: new Date(2020, 3, 28).getTime(),
                  bgcColor: '#00C49A',
                  perBgColor: '#13587E',
                  level: 3
                },
                {
                  id: '2-2',
                  open: true,
                  params: {
                    title: '进度细分时间段孙级',
                    startTime: '2020-04-29',
                    endTime: '2020-08-28',
                    area: '1685m²',
                    // 出租率
                    per: '56%'
                  },
                  startTime: new Date(2020, 3, 29).getTime(),
                  endTime: new Date(2020, 7, 28).getTime(),
                  // bgcColor: '#00C49A',
                  // perBgColor: '#13587E',
                  level: 3
                }
              ]
            },
            {
              id: 3,
              open: true,
              params: {
                title: '分时间段不绘制进度',
                startTime: '2020-01-31',
                endTime: '2020-08-12',
                area: '1685m²',
                // 出租率
                per: '56%',
                // 控制是否对时间分段看每个时间段的详情
                showChild: true,
                children: [
                  {
                    title: '分时间段不绘制进度',
                    startTime: '2020-01-31',
                    endTime: '2020-02-29',
                    area: '39m²',
                    // 进度比率
                    per: '20%',
                    bgcColor: '#BE2E55',
                    perBgColor: '#13587E'
                  },
                  {
                    title: '分时间段不绘制进度',
                    startTime: '2020-02-29',
                    endTime: '2020-03-25',
                    area: '39m²',
                    // 进度比率
                    per: '70%',
                    bgcColor: '#00C49A',
                    perBgColor: '#13587E'
                  },
                  {
                    title: '分时间段不绘制进度',
                    startTime: '2020-03-25',
                    endTime: '2020-05-19',
                    area: '95m²',
                    // 出租率
                    per: '30%',
                    bgcColor: '#4299F3'
                  },
                  {
                    title: '分时间段不绘制进度',
                    startTime: '2020-05-19',
                    endTime: '2020-06-20',
                    area: '39m²',
                    // 控制细分时间段内在有进度比率情况下是否以进度条形式展现
                    showProcess: false,
                    // 进度比率
                    per: '0%',
                    bgcColor: 'red',
                    perBgColor: '#13587E'
                  },
                  {
                    title: '分时间段不绘制进度',
                    startTime: '2020-06-20',
                    endTime: '2020-07-25',
                    area: '95m²',
                    // 出租率
                    per: '90%',
                    bgcColor: '#13587E'
                  }
                ]
              },
              startTime: new Date(2020, 0, 31).getTime(),
              endTime: new Date(2020, 7, 12).getTime(),
              // bgcColor: '#00C49A',
              perBgColor: '#13587E',
              level: 2
            }
          ]
        },
        {
          id: 3,
          params: {
            title: '进度计划模式',
            startTime: '2020-06-19',
            endTime: '2022-01-03',
            area: '75743m²',
            // 出租率
            per: '55%'
          },
          startTime: new Date(2020, 5, 19).getTime(),
          endTime: new Date(2022, 0, 3).getTime(),
          level: 1,
          open: true,
          // bgcColor: '#00C49A',
          // perBgColor: '#13587E',
          children: [
            {
              id: 4,
              params: {
                title: '进度计划子级',
                startTime: '2020-06-19',
                endTime: '2021-12-10',
                area: '4648m²',
                // 出租率
                per: '60%'
              },
              startTime: new Date(2020, 5, 19).getTime(),
              endTime: new Date(2021, 11, 10).getTime(),
              level: 2,
              open: true,
              bgcColor: '#00C49A',
              perBgColor: '#13587E',
              children: [
                {
                  id: 5,
                  params: {
                    title: '进度计划第三级',
                    startTime: '2020-06-19',
                    endTime: '2020-12-10',
                    area: '565m²',
                    // 出租率
                    per: '68%'
                  },
                  startTime: new Date(2020, 5, 19).getTime(),
                  endTime: new Date(2020, 11, 10).getTime(),
                  bgcColor: '#00C49A',
                  perBgColor: '#13587E',
                  level: 3,
                  open: true
                }
              ]
            }
          ]
        }
      ]
    }, {
      offset: 0.28,
      timeMode: 3,
      startTime: 1577808000000,
      endTime: 1598803200000,
      headData: {
        name: {
          value: '名称',
          width: '140',
          shrink: true,
          showToast: true,
          hideHead: false
        },
        area: {
          value: '面积',
          width: '60',
          shrink: false,
          showToast: true,
          hideHead: false
        },
        per: {
          value: '预约率',
          width: '180',
          shrink: false,
          showToast: true,
          hideHead: true
        },
        startTime: {
          value: '开始时间',
          width: '100',
          shrink: false,
          showToast: true,
          hideHead: false
        },
        endTime: {
          value: '结束时间',
          width: '100',
          shrink: false,
          showToast: true,
          hideHead: false
        }
      },
      ganttData: [{
        id: '5266261',
        level: 1,
        open: true,
        children: [{
          id: '5315466',
          level: 2,
          open: false,
          children: [],
          startTime: 1580486400000,
          endTime: 1596124800000,
          params: {
            name: '测试办公楼B',
            area: 1000.0,
            per: '15%',
            startTime: '2020-2-01',
            endTime: '2020-7-31',
            showChild: true,
            children: []
          },
          perBgColor: '#BE2E55',
          bgcColor: '#BE2E55'
        }, {
          id: '5315465',
          level: 2,
          open: false,
          children: [{
            id: '5315469',
            level: 3,
            open: false,
            children: [{
              id: '5307677',
              params: {
                name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A202',
                area: 500.0,
                per: '140%',
                startTime: '2020-1-01',
                endTime: '2020-8-31',
                showChild: true,
                children: [{
                  name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A202',
                  area: 500.0,
                  per: '60%',
                  startTime: '2020-01-01',
                  endTime: '2020-01-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#3EB88D',
                  bgcColor: '#3EB88D'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A202',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-07-01',
                  endTime: '2020-07-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A202',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-08-01',
                  endTime: '2020-08-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }]
              },
              startTime: 1577808000000,
              endTime: 1598803200000,
              perBgColor: '#13587E',
              bgcColor: '#13587E',
              level: 4,
              open: false,
              children: []
            }, {
              id: '5307675',
              params: {
                name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A201',
                area: 500.0,
                per: '80%',
                startTime: '2020-7-01',
                endTime: '2020-8-31',
                showChild: true,
                children: [{
                  name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A201',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-07-01',
                  endTime: '2020-07-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A2/测试办公楼单元A201',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-08-01',
                  endTime: '2020-08-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }]
              },
              startTime: 1593532800000,
              endTime: 1598803200000,
              perBgColor: '#13587E',
              bgcColor: '#13587E',
              level: 4,
              open: false,
              children: []
            }],
            startTime: 1577808000000,
            endTime: 1598803200000,
            params: {
              name: '测试办公楼楼层A2',
              area: 1000.0,
              per: '110%',
              startTime: '2020-1-01',
              endTime: '2020-8-31',
              showChild: true,
              children: [{
                name: '测试办公楼楼层A2',
                area: 1000.0,
                per: '30%',
                startTime: '2020-01-01',
                endTime: '2020-01-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }, {
                name: '测试办公楼楼层A2',
                area: 1000.0,
                per: '40%',
                startTime: '2020-07-01',
                endTime: '2020-07-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }, {
                name: '测试办公楼楼层A2',
                area: 1000.0,
                per: '40%',
                startTime: '2020-08-01',
                endTime: '2020-08-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }]
            },
            perBgColor: '#13587E',
            bgcColor: '#13587E'
          }, {
            id: '5315468',
            level: 3,
            open: false,
            children: [{
              id: '5315673',
              params: {
                name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A102',
                area: 500.0,
                per: '280%',
                startTime: '2020-4-01',
                endTime: '2020-8-31',
                showChild: true,
                children: [{
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A102',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-04-01',
                  endTime: '2020-04-30',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A102',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-05-01',
                  endTime: '2020-05-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A102',
                  area: 500.0,
                  per: '100%',
                  startTime: '2020-07-01',
                  endTime: '2020-07-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A102',
                  area: 500.0,
                  per: '100%',
                  startTime: '2020-08-01',
                  endTime: '2020-08-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }]
              },
              startTime: 1585670400000,
              endTime: 1598803200000,
              perBgColor: '#13587E',
              bgcColor: '#13587E',
              level: 4,
              open: false,
              children: []
            }, {
              id: '5315671',
              params: {
                name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                area: 500.0,
                per: '480%',
                startTime: '2020-1-01',
                endTime: '2020-8-31',
                showChild: true,
                children: [{
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '80%',
                  startTime: '2020-01-01',
                  endTime: '2020-01-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-02-01',
                  endTime: '2020-02-29',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '80%',
                  startTime: '2020-04-01',
                  endTime: '2020-04-30',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '80%',
                  startTime: '2020-05-01',
                  endTime: '2020-05-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '100%',
                  startTime: '2020-07-01',
                  endTime: '2020-07-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }, {
                  name: '测试园区/测试办公楼A/测试办公楼楼层A1/测试办公楼单元A101',
                  area: 500.0,
                  per: '100%',
                  startTime: '2020-08-01',
                  endTime: '2020-08-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }]
              },
              startTime: 1577808000000,
              endTime: 1598803200000,
              perBgColor: '#13587E',
              bgcColor: '#13587E',
              level: 4,
              open: false,
              children: []
            }],
            startTime: 1577808000000,
            endTime: 1598803200000,
            params: {
              name: '测试办公楼楼层A1',
              area: 1000.0,
              per: '380%',
              startTime: '2020-1-01',
              endTime: '2020-8-31',
              showChild: true,
              children: [{
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '40%',
                startTime: '2020-01-01',
                endTime: '2020-01-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }, {
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '20%',
                startTime: '2020-02-01',
                endTime: '2020-02-29',
                showChild: true,
                children: [],
                perBgColor: '#BE2E55',
                bgcColor: '#BE2E55'
              }, {
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '60%',
                startTime: '2020-04-01',
                endTime: '2020-04-30',
                showChild: true,
                children: [],
                perBgColor: '#3EB88D',
                bgcColor: '#3EB88D'
              }, {
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '60%',
                startTime: '2020-05-01',
                endTime: '2020-05-31',
                showChild: true,
                children: [],
                perBgColor: '#3EB88D',
                bgcColor: '#3EB88D'
              }, {
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '100%',
                startTime: '2020-07-01',
                endTime: '2020-07-31',
                showChild: true,
                children: [],
                perBgColor: '#13587E',
                bgcColor: '#13587E'
              }, {
                name: '测试办公楼楼层A1',
                area: 1000.0,
                per: '100%',
                startTime: '2020-08-01',
                endTime: '2020-08-31',
                showChild: true,
                children: [],
                perBgColor: '#13587E',
                bgcColor: '#13587E'
              }]
            },
            perBgColor: '#13587E',
            bgcColor: '#13587E'
          }],
          startTime: 1577808000000,
          endTime: 1598803200000,
          params: {
            name: '测试办公楼A',
            area: 2000.0,
            per: '245%',
            startTime: '2020-1-01',
            endTime: '2020-8-31',
            showChild: true,
            children: [{
              name: '测试办公楼A',
              area: 2000.0,
              per: '35%',
              startTime: '2020-01-01',
              endTime: '2020-01-31',
              showChild: true,
              children: [],
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }, {
              name: '测试办公楼A',
              area: 2000.0,
              per: '10%',
              startTime: '2020-02-01',
              endTime: '2020-02-29',
              showChild: true,
              children: [],
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }, {
              name: '测试办公楼A',
              area: 2000.0,
              per: '30%',
              startTime: '2020-04-01',
              endTime: '2020-04-30',
              showChild: true,
              children: [],
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }, {
              name: '测试办公楼A',
              area: 2000.0,
              per: '30%',
              startTime: '2020-05-01',
              endTime: '2020-05-31',
              showChild: true,
              children: [],
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }, {
              name: '测试办公楼A',
              area: 2000.0,
              per: '70%',
              startTime: '2020-07-01',
              endTime: '2020-07-31',
              showChild: true,
              children: [],
              perBgColor: '#3EB88D',
              bgcColor: '#3EB88D'
            }, {
              name: '测试办公楼A',
              area: 2000.0,
              per: '70%',
              startTime: '2020-08-01',
              endTime: '2020-08-31',
              showChild: true,
              children: [],
              perBgColor: '#3EB88D',
              bgcColor: '#3EB88D'
            }]
          },
          perBgColor: '#13587E',
          bgcColor: '#13587E'
        }, {
          id: '5308158',
          level: 2,
          open: false,
          children: [{
            id: '5308304',
            level: 3,
            open: false,
            children: [{
              id: '5316395',
              level: 4,
              open: false,
              children: [],
              startTime: null,
              endTime: null,
              params: {
                name: '测试仓库单元A201',
                area: 500.0,
                per: '0%',
                startTime: '',
                endTime: '',
                showChild: true,
                children: []
              },
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }, {
              id: '5308307',
              level: 4,
              open: false,
              children: [],
              startTime: 1577808000000,
              endTime: 1580400000000,
              params: {
                name: '测试仓库单元A202',
                area: 500.0,
                per: '100%',
                startTime: '2020-1-01',
                endTime: '2020-1-31',
                showChild: true,
                children: [{
                  name: '测试仓库单元A202',
                  area: 500.0,
                  per: '100%',
                  startTime: '2020-01-01',
                  endTime: '2020-01-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }]
              },
              perBgColor: '#13587E',
              bgcColor: '#13587E'
            }],
            startTime: 1577808000000,
            endTime: 1580400000000,
            params: {
              name: '测试仓库楼层A2',
              area: 1000.0,
              per: '50%',
              startTime: '2020-1-01',
              endTime: '2020-1-31',
              showChild: true,
              children: [{
                name: '测试仓库楼层A2',
                area: 1000.0,
                per: '50%',
                startTime: '2020-01-01',
                endTime: '2020-01-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }]
            },
            perBgColor: '#4299F3',
            bgcColor: '#4299F3'
          }, {
            id: '5313774',
            level: 3,
            open: false,
            children: [{
              id: '5308305',
              level: 4,
              open: false,
              children: [],
              startTime: 1577808000000,
              endTime: 1580400000000,
              params: {
                name: '测试仓库单元A102',
                area: 500.0,
                per: '40%',
                startTime: '2020-1-01',
                endTime: '2020-1-31',
                showChild: true,
                children: [{
                  name: '测试仓库单元A102',
                  area: 500.0,
                  per: '40%',
                  startTime: '2020-01-01',
                  endTime: '2020-01-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#4299F3',
                  bgcColor: '#4299F3'
                }]
              },
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }, {
              id: '5316394',
              level: 4,
              open: false,
              children: [],
              startTime: 1577808000000,
              endTime: 1580400000000,
              params: {
                name: '测试仓库单元A101',
                area: 500.0,
                per: '80%',
                startTime: '2020-1-01',
                endTime: '2020-1-31',
                showChild: true,
                children: [{
                  name: '测试仓库单元A101',
                  area: 500.0,
                  per: '80%',
                  startTime: '2020-01-01',
                  endTime: '2020-01-31',
                  showChild: true,
                  children: [],
                  perBgColor: '#13587E',
                  bgcColor: '#13587E'
                }]
              },
              perBgColor: '#13587E',
              bgcColor: '#13587E'
            }],
            startTime: 1577808000000,
            endTime: 1580400000000,
            params: {
              name: '测试仓库楼层A1',
              area: 1000.0,
              per: '60%',
              startTime: '2020-1-01',
              endTime: '2020-1-31',
              showChild: true,
              children: [{
                name: '测试仓库楼层A1',
                area: 1000.0,
                per: '60%',
                startTime: '2020-01-01',
                endTime: '2020-01-31',
                showChild: true,
                children: [],
                perBgColor: '#3EB88D',
                bgcColor: '#3EB88D'
              }]
            },
            perBgColor: '#3EB88D',
            bgcColor: '#3EB88D'
          }],
          startTime: 1577808000000,
          endTime: 1580400000000,
          params: {
            name: '测试仓库A',
            area: 2000.0,
            per: '55%',
            startTime: '2020-1-01',
            endTime: '2020-1-31',
            showChild: true,
            children: [{
              name: '测试仓库A',
              area: 2000.0,
              per: '55%',
              startTime: '2020-01-01',
              endTime: '2020-01-31',
              showChild: true,
              children: [],
              perBgColor: '#3EB88D',
              bgcColor: '#3EB88D'
            }]
          },
          perBgColor: '#3EB88D',
          bgcColor: '#3EB88D'
        }, {
          id: '5308155',
          level: 2,
          open: false,
          children: [],
          startTime: null,
          endTime: null,
          params: {
            name: '测试仓库B',
            area: 1000.0,
            per: '0%',
            startTime: '',
            endTime: '',
            showChild: true,
            children: []
          },
          perBgColor: '#BE2E55',
          bgcColor: '#BE2E55'
        }, {
          id: '5316099',
          level: 2,
          open: false,
          children: [],
          params: {
            name: '测试停车场B',
            area: 100.0,
            per: '0%',
            startTime: '',
            endTime: '',
            showChild: true,
            children: []
          },
          startTime: null,
          endTime: null,
          perBgColor: '#BE2E55',
          bgcColor: '#BE2E55'
        }, {
          id: '5316097',
          level: 2,
          open: false,
          children: [{
            id: '5316100',
            level: 3,
            open: false,
            children: [],
            params: {
              name: '测试停车场楼层A2',
              area: 50.0,
              per: '0%',
              startTime: '',
              endTime: '',
              showChild: true,
              children: []
            },
            startTime: null,
            endTime: null,
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }, {
            id: '5313744',
            level: 3,
            open: false,
            children: [{
              id: '5313747',
              level: 4,
              open: false,
              children: [],
              params: {
                name: '测试停车场区域A-b',
                area: 20.0,
                per: '0%',
                startTime: '',
                endTime: '',
                showChild: true,
                children: []
              },
              startTime: null,
              endTime: null,
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }, {
              id: '5308153',
              level: 4,
              open: false,
              children: [{
                params: {
                  name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a02',
                  area: 10.0,
                  per: '300%',
                  startTime: '2020-1-01',
                  endTime: '2020-8-31',
                  showChild: true,
                  children: [{
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a02',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-01-01',
                    endTime: '2020-01-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }, {
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a02',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-07-01',
                    endTime: '2020-07-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }, {
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a02',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-08-01',
                    endTime: '2020-08-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }]
                },
                startTime: 1577808000000,
                endTime: 1598803200000,
                level: 5,
                open: false,
                perBgColor: '#13587E',
                bgcColor: '#13587E',
                children: []
              }, {
                params: {
                  name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a01',
                  area: 10.0,
                  per: '300%',
                  startTime: '2020-1-01',
                  endTime: '2020-8-31',
                  showChild: true,
                  children: [{
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a01',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-01-01',
                    endTime: '2020-01-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }, {
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a01',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-07-01',
                    endTime: '2020-07-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }, {
                    name: '测试园区/测试停车场A/测试停车场楼层A1/测试停车场区域A-a/测试停车位A1-a01',
                    area: 10.0,
                    per: '100%',
                    startTime: '2020-08-01',
                    endTime: '2020-08-31',
                    showChild: true,
                    children: [],
                    perBgColor: '#13587E',
                    bgcColor: '#13587E'
                  }]
                },
                startTime: 1577808000000,
                endTime: 1598803200000,
                level: 5,
                open: false,
                perBgColor: '#13587E',
                bgcColor: '#13587E',
                children: []
              }],
              params: {
                name: '测试停车场区域A-a',
                area: 30.0,
                per: '200%',
                startTime: '2020-1-01',
                endTime: '2020-8-31',
                showChild: true,
                children: []
              },
              startTime: 1577808000000,
              endTime: 1598803200000,
              perBgColor: '#13587E',
              bgcColor: '#13587E'
            }],
            params: {
              name: '测试停车场楼层A1',
              area: 50.0,
              per: '120%',
              startTime: '2020-1-01',
              endTime: '2020-8-31',
              showChild: true,
              children: [{
                name: '测试停车场楼层A1',
                area: 50.0,
                per: '40%',
                startTime: '2020-01-01',
                endTime: '2020-01-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }, {
                name: '测试停车场楼层A1',
                area: 50.0,
                per: '40%',
                startTime: '2020-07-01',
                endTime: '2020-07-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }, {
                name: '测试停车场楼层A1',
                area: 50.0,
                per: '40%',
                startTime: '2020-08-01',
                endTime: '2020-08-31',
                showChild: true,
                children: [],
                perBgColor: '#4299F3',
                bgcColor: '#4299F3'
              }]
            },
            startTime: 1577808000000,
            endTime: 1598803200000,
            perBgColor: '#13587E',
            bgcColor: '#13587E'
          }],
          params: {
            name: '测试停车场A',
            area: 100.0,
            per: '60%',
            startTime: '2020-1-01',
            endTime: '2020-8-31',
            showChild: true,
            children: [{
              name: '测试停车场A',
              area: 100.0,
              per: '20%',
              startTime: '2020-01-01',
              endTime: '2020-01-31',
              showChild: true,
              children: [],
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }, {
              name: '测试停车场A',
              area: 100.0,
              per: '20%',
              startTime: '2020-07-01',
              endTime: '2020-07-31',
              showChild: true,
              children: [],
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }, {
              name: '测试停车场A',
              area: 100.0,
              per: '20%',
              startTime: '2020-08-01',
              endTime: '2020-08-31',
              showChild: true,
              children: [],
              perBgColor: '#BE2E55',
              bgcColor: '#BE2E55'
            }]
          },
          startTime: 1577808000000,
          endTime: 1598803200000,
          perBgColor: '#3EB88D',
          bgcColor: '#3EB88D'
        }, {
          id: '5313750',
          level: 2,
          open: '',
          children: [],
          params: {
            name: '测试屋顶A',
            area: 2000.0,
            per: '100%',
            startTime: '2020-1-01',
            endTime: '2020-2-29',
            showChild: true,
            children: [{
              name: '测试屋顶A',
              area: 2000.0,
              per: '50%',
              startTime: '2020-01-01',
              endTime: '2020-01-31',
              showChild: true,
              children: [],
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }, {
              name: '测试屋顶A',
              area: 2000.0,
              per: '50%',
              startTime: '2020-02-01',
              endTime: '2020-02-29',
              showChild: true,
              children: [],
              perBgColor: '#4299F3',
              bgcColor: '#4299F3'
            }]
          },
          startTime: 1577808000000,
          endTime: 1582905600000,
          perBgColor: '#13587E',
          bgcColor: '#13587E'
        }],
        params: {
          name: '测试园区',
          area: 10000.0,
          per: '81%',
          startTime: '2020-1-01',
          endTime: '2020-8-31',
          showChild: true,
          children: [{
            name: '测试园区',
            area: 10000.0,
            per: '28%',
            startTime: '2020-01-01',
            endTime: '2020-01-31',
            showChild: true,
            children: [],
            perBgColor: '#4299F3',
            bgcColor: '#4299F3'
          }, {
            name: '测试园区',
            area: 10000.0,
            per: '12%',
            startTime: '2020-02-01',
            endTime: '2020-02-29',
            showChild: true,
            children: [],
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }, {
            name: '测试园区',
            area: 10000.0,
            per: '6%',
            startTime: '2020-04-01',
            endTime: '2020-04-30',
            showChild: true,
            children: [],
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }, {
            name: '测试园区',
            area: 10000.0,
            per: '6%',
            startTime: '2020-05-01',
            endTime: '2020-05-31',
            showChild: true,
            children: [],
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }, {
            name: '测试园区',
            area: 10000.0,
            per: '14%',
            startTime: '2020-07-01',
            endTime: '2020-07-31',
            showChild: true,
            children: [],
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }, {
            name: '测试园区',
            area: 10000.0,
            per: '14%',
            startTime: '2020-08-01',
            endTime: '2020-08-31',
            showChild: true,
            children: [],
            perBgColor: '#BE2E55',
            bgcColor: '#BE2E55'
          }]
        },
        startTime: 1577808000000,
        endTime: 1598803200000,
        perBgColor: '#13587E',
        bgcColor: '#13587E'
      }]
    }]
  }
}

Mock.mock(/\/gantOne/, data)
